package com.gx.dto.base.result;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Collection;
import java.util.Collections;

/**
 * 分页结果
 *
 * @author Vincent Lee
 * @since 0.0.1
 */
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Data
public class PageResult<T> extends CommonResult {
    @ApiModelProperty("分页数据信息")
    private Collection<T> records = Collections.emptyList();
    @ApiModelProperty("总条数")
    private long total = 0;
    @ApiModelProperty("每页显示条数")
    private long size;
    @ApiModelProperty("当前页")
    private long current;


}
